import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import qiankun from 'vite-plugin-qiankun';
export default defineConfig({
  build: {
    outDir:"../../../qiankun/build/test1"
  },
  plugins: [vue(), qiankun('app-vue', { useDevMode: true })],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  },
  server: {
    open: true, // 自动启动浏览器
    host: '0.0.0.0', // localhost
    port: 8002 // 端口号
  }
});
